#define  _CRT_SECURE_NO_WARNINGS
#include "allSort.h"

//void PrintArr(int* arr, int _size)
//{
//	for (int i = 0; i < _size; ++i)
//	{
//		printf("%d ", arr[i]);
//	}
//}

#define N 8
int arr[N] = { 45,89,23,17,7,5,309,267 };

void makeArr()
{
	srand((unsigned int)time(NULL));
	for (int i = 0; i < N; ++i)
	{
		arr[i] = rand() + i;
		// arr[i] = rand() % 10;
	}
}

int main()
{
	// makeArr();
	//int arr1[2] = { 9,1 };
	//int n = sizeof(arr) / sizeof(int);

	// HeapSort2(arr, N);
	//ItrospectionQuickSort(arr, 0, N - 1);
	QuickSort_0(arr, 0, N - 1);
	PrintArr(arr, N);
	return 0;
}
